package com.zbkj.dal.pojo.vo;

import com.beust.jcommander.internal.Lists;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

import java.util.List;

@Data
public class IndexTabListVO {

    @ApiModelProperty("时尚新品位")
    private TabCodeView newFashionable;

    @ApiModelProperty("臻品推荐位")
    private TabCodeView recommendedFinest;

    @Data
    public static class TabCodeView {

        @ApiModelProperty("标签名称")
        private String tabName;

        @ApiModelProperty("标签编码")
        private String tabCode;

        @ApiModelProperty("每页记录数")
        private Integer limit;
    }

    @AllArgsConstructor
    public enum TabView {
        NEW_FASHIONABLE("newFashionable", "时尚新品"),
        RECOMMENDED_FINEST("recommendedFinest", "臻品推荐");

        @Getter
        private final String code;
        @Getter
        private final String name;

        // 获取所有的Code
        public static final List<String> allCodes = Lists.newArrayList(NEW_FASHIONABLE.code, RECOMMENDED_FINEST.code);
    }
}
